package com.zhentao.feign;

import com.zhentao.api.article.ArticleClientApi;
import com.zhentao.model.article.dto.ArticleDto;
import com.zhentao.model.common.dtos.ResponseResult;
import com.zhentao.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class ArticleClient implements ArticleClientApi {
    @Autowired
    private ArticleService articleService;
    @PostMapping("/api/v1/article/save")
    @Override
    public ResponseResult saveArticle(ArticleDto dto) {
        return articleService.saveArticle(dto);
    }

}
